package com.ai.config;

import com.alibaba.cloud.ai.dashscope.api.DashScopeApi;
import com.alibaba.cloud.ai.dashscope.rag.DashScopeCloudStore;
import com.alibaba.cloud.ai.dashscope.rag.DashScopeStoreOptions;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


//@Configuration
public class AIDashScopeConfig {

    //@Bean
    //@ConditionalOnMissingBean
    //public DashScopeCloudStore dashScopeCloudStore() {
    //    DashScopeStoreOptions options = new DashScopeStoreOptions("test");//知识库名称
    //    return new DashScopeCloudStore(
    //            DashScopeApi.builder().apiKey("sk-056680f37cbd4c88bb57d78227f931ca").build()
    //            ,options);
    //}
}
